from redis import StrictRedis


class Config:
    DEBUG = True
    SECRET_KEY = 'NgQgG9bgxjI4G0tC0EvLgZy8C1bE2A/L5as2Zft1pHn3PqROccgqLcXfjnmqCYWciYF5PbJ3+Nh8JM6cUFV6UpZt8vOidSXaD+FKLIke2cP3Iq2A8GIPYSnUjaUCVaQ75FWamA=='



    SESSION_TYPE = 'redis'
    SESSION_REDIS = StrictRedis(host='127.0.0.1',port=6379)
    SESSION_USE_SIGNER = True
    PERMANENT_SESSION_LIFETIME = 86400


    SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql@localhost/info3'
    SQLALCHEMY_TRACK_MODIFICATIONS = False

class DevelopmengtConfig(Config):
    DEBUG = True

class ProductionConfig(Config):
    DEBUG = False


create_dict = {
    'development':DevelopmengtConfig,
    'production':ProductionConfig
}

